using Nop.Data.Mapping;
using Nop.Plugin.Widgets.Ribbon.Domain;

namespace Nop.Plugin.Widgets.Ribbon.Data
{
    public partial class RibbonMap : NopEntityTypeConfiguration<RibbonObject>
    {
        public RibbonMap()
        {
            this.ToTable("Ribbon");
            this.HasKey(r => r.Id);
            this.Property(r => r.Name).IsRequired().HasMaxLength(100);
            this.Property(r => r.Text).IsRequired().HasMaxLength(100);
            this.Property(r => r.RibbonClass).IsRequired().HasMaxLength(100);
            this.Property(r => r.TargetClass).IsRequired().HasMaxLength(100);
        }
    }
}